package com.springcloud.zuul.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springcloud.zuul.entity.SysProductEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * @program: springcloud-zuul
 * @description: 产品
 * @author: zhlu
 * @create: 2019-12-31 15:06
 * @Introduction(说明背景故事)
 **/
@Mapper
public interface SysProductDao extends BaseMapper<SysProductEntity> {

    /**
     * Description:根据产品编码获取产品信息
     * @author zhlu
     * @date 2019/12/31 3:20 下午
     * @param
     * @return com.springcloud.zuul.entity.SysProductEntity
     */
    SysProductEntity queryByProductId(String productId);

    /**
     * Description:根据产品编码获取产品数量
     * @author zhlu
     * @date 2019/12/31 5:41 下午
     * @param productId
     * @return int
     */
    int countProductByProductId(String productId);

}
